<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Low-Battery-Yup/Low Battery Yup d, branch ShortcutRecorder</title>
<subtitle>Dismiss Mac OS X's low battery warning dialog with the keyboard</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/'/>
<entry>
<title>Remove MainMenu.xib</title>
<updated>2016-11-16T09:56:51+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T09:56:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=f0e8b5188e6fb984511eb01849380669e69632a6'/>
<id>f0e8b5188e6fb984511eb01849380669e69632a6</id>
<content type='text'>
Since this is a backround app
(3db243f3c84f7ab36747f4badfd4f57a26563821), we don't have a UI and have
no need for any nib files.

We'll make an additional target as a separate application that does
have a UI and will allow customisation of the global hotkey.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since this is a backround app
(3db243f3c84f7ab36747f4badfd4f57a26563821), we don't have a UI and have
no need for any nib files.

We'll make an additional target as a separate application that does
have a UI and will allow customisation of the global hotkey.
</pre>
</div>
</content>
</entry>
<entry>
<title>Mouse: Change mouse coordinates to Low Battery OK button</title>
<updated>2016-11-16T09:51:45+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T09:51:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=b3e644a6ec9d14554f4268d38b543cc1d8b7197e'/>
<id>b3e644a6ec9d14554f4268d38b543cc1d8b7197e</id>
<content type='text'>
Modify the coordinates such that instead of clicking the center of the
screen, we click the OK button on the low battery warning dialog.

Rename the method according to its new intent.

TODO: This probably doesn't work on other displays that have different
resolutions. We need to check that and figure out a cross-display
solution.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Modify the coordinates such that instead of clicking the center of the
screen, we click the OK button on the low battery warning dialog.

Rename the method according to its new intent.

TODO: This probably doesn't work on other displays that have different
resolutions. We need to check that and figure out a cross-display
solution.
</pre>
</div>
</content>
</entry>
<entry>
<title>Info.plist: Set LSBackgroundOnly=1</title>
<updated>2016-11-16T09:29:35+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T09:29:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=3db243f3c84f7ab36747f4badfd4f57a26563821'/>
<id>3db243f3c84f7ab36747f4badfd4f57a26563821</id>
<content type='text'>
Make this a background-only app. We don't have any UI for the daemon
part of the app. It should just sit quietly until it's called by a
global hotkey to click in the right part of the screen.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make this a background-only app. We don't have any UI for the daemon
part of the app. It should just sit quietly until it's called by a
global hotkey to click in the right part of the screen.
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename project to "Low Battery Yup.d"</title>
<updated>2016-11-16T09:26:06+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T09:26:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=b5569ad884cd99d8f0b1403c34bc244d6a514182'/>
<id>b5569ad884cd99d8f0b1403c34bc244d6a514182</id>
<content type='text'>
Change the last space to a dot to make it more obvious that it's
supposed to mean 'daemon'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change the last space to a dot to make it more obvious that it's
supposed to mean 'daemon'.
</pre>
</div>
</content>
</entry>
<entry>
<title>Mouse: Move `centerPoint` back to `moveToCenter`</title>
<updated>2016-11-16T09:19:51+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T09:19:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=fbea67769cdc92d6ca67b0bff3b40d0387c088cb'/>
<id>fbea67769cdc92d6ca67b0bff3b40d0387c088cb</id>
<content type='text'>
This method isn't reused anywhere so it can go back into the
`moveToCenter` method.

Originally created before `_cursor_position`. See
1832514ab872dec621d5f403eb5328167b3da033.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This method isn't reused anywhere so it can go back into the
`moveToCenter` method.

Originally created before `_cursor_position`. See
1832514ab872dec621d5f403eb5328167b3da033.
</pre>
</div>
</content>
</entry>
<entry>
<title>Mouse: Implement `click`</title>
<updated>2016-11-16T09:12:56+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T09:12:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=1832514ab872dec621d5f403eb5328167b3da033'/>
<id>1832514ab872dec621d5f403eb5328167b3da033</id>
<content type='text'>
Method that clicks the mouse.

* Add `_cursor_position` instance var that describes the current cursor
  position after the `moveToPoint` method is called
* `click` will click at the `_cursor_position` point
* I had extracted the centering code to `centerPoint` (which maybe
  should have been called `pointAtCenter`) out of the `moveToCenter`
  method because I briefly used it in `click` as a test before adding
  the `_cursor_position` ivar. This should be reintegrated with
  `moveToCenter`.
* Add a `post_mouse_event` function that abstracts the CG calls needed
  to send a mouse event since we need both click down and up events.

Based on:
http://stackoverflow.com/questions/1483657/performing-a-double-click-using-cgeventcreatemouseevent
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Method that clicks the mouse.

* Add `_cursor_position` instance var that describes the current cursor
  position after the `moveToPoint` method is called
* `click` will click at the `_cursor_position` point
* I had extracted the centering code to `centerPoint` (which maybe
  should have been called `pointAtCenter`) out of the `moveToCenter`
  method because I briefly used it in `click` as a test before adding
  the `_cursor_position` ivar. This should be reintegrated with
  `moveToCenter`.
* Add a `post_mouse_event` function that abstracts the CG calls needed
  to send a mouse event since we need both click down and up events.

Based on:
http://stackoverflow.com/questions/1483657/performing-a-double-click-using-cgeventcreatemouseevent
</pre>
</div>
</content>
</entry>
<entry>
<title>Make the mouse move to the center of the screen</title>
<updated>2016-11-16T07:19:46+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T07:19:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=a3c91c19679d43e0298fe89c4654bb0645c7c0a2'/>
<id>a3c91c19679d43e0298fe89c4654bb0645c7c0a2</id>
<content type='text'>
* Create a `Mouse` class to group mouse movement and click functionality
* Add functions to move the mouse to the center of the screen (primary
  display)
* Move the cursor to the center on launch
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Create a `Mouse` class to group mouse movement and click functionality
* Add functions to move the mouse to the center of the screen (primary
  display)
* Move the cursor to the center on launch
</pre>
</div>
</content>
</entry>
<entry>
<title>Initial Commit</title>
<updated>2016-11-16T06:27:27+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T06:27:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=2ba5c8101fe74cde9c7ef5f0c5df9e3e5d2d9e9b'/>
<id>2ba5c8101fe74cde9c7ef5f0c5df9e3e5d2d9e9b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
